package com.henry.sentinel.fallback;

import com.henry.feign.service.FeignStuService;
import com.henry.pojo.Stu;
import com.henry.vo.R;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.ArrayList;
import java.util.List;

/**
 * @program: spring-cloud-alibaba-demo
 * @description:
 * @author: Henry.zhang
 * @create: 2022-08-31 11:20
 */
@Component
public class FeignStuServiceFallBack implements FeignStuService {
    /*
    属性列表
    */

    public R getAll() {
        return R.error();
    }

    public R getOne(@RequestParam("stuId") Integer stuId) {
        return R.error();
    }

    public R foo(@RequestParam("number") Integer number) throws Exception {
        return R.error();
    }

    public List<Stu> getAllList() {
        return new ArrayList<Stu>();
    }
}
